function addAddressBtn() {
    let action = document.getElementById("addAddress");
    action.setAttribute("style","display:block");
}
function addAddress(){
    let address = document.getElementsByName("address")[0].value ;
    let remark = document.getElementsByName("remark")[0].value ;
    $.ajax({
        url:"/user/addAddress/"+address+"/"+remark,
        type:"POST",
        success:function (data) {
            if(data == "success"){
                document.getElementById("addAddress").setAttribute("style","display:none")
                window.location.href="http://localhost:8080/user/addressList";
            }else {
                alert("信息错误");
            }
        }
    });
}

